added 'back' functionality
added 'back' functionality
graceful shutdown on exit