Fixed issue where holding a button for 3 seconds didn't always shut down the system as it should. Closes #2