take different approach since flask app doesn't have a stop  / restart method.