pass the app module to stop_protocol