Fixes release cleanup for `before_deploy` hook failures.

 Previously, hook failures would not trigger the cleanup of the
 release directory.

This is a backwards compatible bug fix and can be included in a patch release.