catch Throwable on deploy