SpongeBob despairs about the death of Gary, until Gary appears behind him with no explanation. He then says that he just wanted to pet Gary, only to reveal that it was a trick by eating him. SpongeBob enters his house to stop the Flying Dutchman. He soon turns to Patrick for help, but he just closes his door out of fear. SpongeBob gets scared and goes to Squidward for help, but unfortunately, he doesn't believe in ghosts. The Flying Dutchman then calls for repair, giving him residence at SpongeBob's house, where he proceeds to scare, startle, and surprise SpongeBob around the clock. This episode opens up on one night, by showing The Flying Dutchman's ship sailing through the seas, but cannot see very well due to heavy fog.