Exit all code in an addin but leave ArcMap open

Discussion created by ethoms on Feb 17, 2011
Once I have trapped an error in an extension addin and I want my code to stop running, how do I gracefully end the execution of all subsequent subs and functions but leave ArcMap open?