fixed bug that caused users to close socket