Prevent hangs when missing an error handler

Many commands lack onError handlers, and hence the promise chain will never end if they fail.

Add a default onError handler and use that in case none is supplied. This helps greatly to avoid Dalek hanging during test runs.