Fixed Bug with server stop function