Exit with proper status codes, allow q flag

The program will now exit with a non-zero exit code in the unlikely
event that the mountain did in fact fall. Also, allow running with a -q
switch to not show any output, only exit with proper exit code.
Extract to remove duplication