Windows exception handling, server reconnect fix