This will do that.  The 'error' event will pass a non-null argument to done, so it will be treated as a failure.