Fixed #3 Cancel encoding and delete in-progress files when deleting attachment