add shutdown method for prod deploys