A man is closing a gate with a train in the distance .