With your code, a smart approach would be to also do:
Zend_Registry::set('db', $db);
after either get or close Connection, since if later you would again do Zend_Registry::get('db'), you would end up with the old object