Added code for breaking websocketserver

Just a small fix for stopping the websocketserver during runtime. Does
not have support for graceful shutdown yet