Close all opened connections in session when quit