Voyage of the Damned

At the end of Last of the Time Lords, a ship crashes through the side of the TARDIS, mid flight, and a life ring bearing the name 'Titanic' is thrown towards the Doctor - what on Earth is going on?