Rejecting promises with Errors and removing cruft.