Lewis Hamilton took responsibility for failing to pit when he was instructed to in Singapore, which led him to lose three places.