tommy 's hammering in the engine room had gone on late into the night , but jessica had eventually managed to drift off to sleep , wakening only once from a nightmare where a noble knight had been locked up in a wicked witch 's tower .