Cltools check exitcode

This option supersedes 'return_code' which I didn't know about and didn't appear in the wizard anyway.

Fixes #957.