unset the handler when done