fixed bug with double disconnects crashing server