remove generated files in case of exception