Contractor fined £20,000 for safety failures