Replace sys.exits with raises.
Merge pull request #812 from arjclark/fix.hang-on-empty-state-file

cylc-restart: fix getting stuck on loading broken state file