Added error handling for empty tiles and clean-up of cycle time file