added shutdown signal to app and dispatcher