Fixes #8 Shutdown on ctrl+d