Added correct exit code to failed CLI commands

Both NilSubcommand and UnknownSubcommand exited with code 0 even though
they are errors and should exit with code 1.
I have changed the puts statement with an abort one to make sure the cli
exits correctly.