Yesterday I was disconnected from the internet for a couple of hours and the Bitcoin gui still showed 15 connections and my miner was still buzzing away.

Well the miner will simply continue to process the current work it has been given until it either finishes it or is told to stop.