Kill switch Changes

Added a dedicated task for listening for the killswitch and stopping the
program if it is pressed.