Kepler's years in Prague were relatively peaceful, and scientifically extremely productive. In fact, even when things went badly, he seems never to have allowed external circumstances to prevent him from getting on with his work. Things began to go very badly in late 1611. First, his seven year old son died. Kepler wrote to a friend that this death was particularly hard to bear because the child reminded him so much of himself at that age. Then Kepler's wife died. Then the Emperor Rudolf, whose health was failing, was forced to abdicate in favour of his brother Matthias, who, like Rudolf, was a Catholic but (unlike Rudolf) did not believe in tolerance of Protestants. Kepler had to leave Prague. Before he departed he had his wife's body moved into the son's grave, and wrote a Latin epitaph for them. He and his remaining children moved to Linz (now in Austria).