Logout implemented

Catches logout value after stopping the session with „exit“ to get back
control of the own shell