Add a generalised variant of 'topHandler'.
Don't die if some deps weren't reinstalled.