Auto detects if tmux session is still alive.