private static void ExecuteCoreTask( Options options ) { try { using ( Program main = new Program() ) { main.Run( options ); //show and start rendering } //dispose of it when done } catch ( Exception ex ) { Console.WriteLine( BuildExceptionString( ex ) ); Console.WriteLine( "An exception has occurred. Press enter to continue..." ); Console.ReadLine(); } }