unset() closes the session, because $connection_string does not
hold a reference to the $session variable, just a string cast
derived from it. This also happens when the unset() is implicit
because of leaving scope (like in a function).