-- /bin/exit - Disconnects from a remote session or cloes terminal window. if is_remote_session then return { action = "disconnect" } else return { action = "close_terminal" } end