finish emergency