Prevent recursion when SocketIO is closing
Fix version