Attempt to delete files when the form is closing instead of when its opening