fix error in EM::Client::close