check if tmux is running before connecting