Bug: No proper clean-up on closing the CLI window
When closing the VAServer by closing the window, the StopServer() is not called to clean up the core, etc.
This leads to the following bugs
- When recording, respective files are not stored
- Some clients may crash, if still connected (experienced with VAMatlab)