Use Error objects in callback passed to "destroy" methods

The currently plain undefined objects are not useful at all, because
the properties are undefined.
Merge pull request #534 from kossebau/useErrorTypeInDestroyCallback

Use Error objects in callback passed to "destroy" methods