Update ConsoleControl.cs

Added check to make sure the handle exists before trying to Invoke.
This solved issues where the application is shutting down.