Fix for error when reading port from config file
Now properly shuts down on ctrl-C on Windows
Now properly opens the config file with -e switch on windows