fixed an issue with Logger.io_close, needed to check for undefined

Small change needed in Logger.io_close. If client.oEmit or client.$oEmit are undefined, don't do anything. This means that we've never set/enabled socket.io event logging.