Add option to fail a stubbed command and to specify a proc as command handler.