Clean up the staging directory after a build succeeds

If the staging directory is used to host the build context for an image, when the build succeeds we should clean up the files automatically, and in the event of a failure, alert the user that the files were not cleaned up.