with the utmost dispatch , he grabbed a loose pot that leapt off its shelf , thrust a large ham on a spit into the lower cupboard , and whirled to clap a lid on the boiling pot hung over the galley fire .