[#59844658] Change cancel() method to send email instead of deleting Galaxy history.
Code formatting cleanup.