Short circuit onDispatchError on console

When invoked as console application onDispatchError returns immediately.