Cleans up handlers