Set the process exit status after finishing the 'status' subcommand

This is necessary in order for other scripts to know that the status
was nominal or troubled, since there is console output in either case.
Merge pull request #9 from njonsson/exit-status-for-status-subcommand

Set the process exit status after finishing the 'status' subcommand