Shutdown

Make sure to only review this after #6, as this is written from it

fixes #7