the accident was averted by a quick movement of his hand as he leapt out of the cabin and ran round the ship , lighting all the lanterns and banishing the eerie atmosphere created by a dark sky and a full moon .