Update ConsoleControl.cs

Added check to make sure the handle exists before trying to Invoke.
This solved issues where the application is shutting down.
Merge pull request #6 from Kriosym/patch-1

Update ConsoleControl.cs to fix exception that can occur when shutting down.