added bash script to quit terminal if the last tab was closed with the logout command