server events not being disconnected