Exit the terminal window after restarting wifi