emit exit after close

Did you mean to leave out `em.handle = nil` here?