possibility to hook into destroy transaction. #file= accepts nil to remove file for writing