formatting
formatting
fixed bug where removeListeners was not being called, also put client removal in try block, log improvements
formatting