Fixed issue on the CodeHostConsole class of Starcounter.CLI, causing occational cases where a web socket could wait for being opened forever, even though the client had instructed the console to close.
Merge branch 'develop' into issue/1856
Merge branch 'issue/1856' into develop. Fixes #1856.