Bug when server stops