Fixes #7: Modified Client to emit connect.error event when getSocket() throws an exception