added deletion of half-saved files when cancel button is pushed