Proper Doctrine2 ORM connection shutdown