add error handling for tmux