add a timer to quit the application

Fixes #385