call tmux blockingly when closing all panes in exit hook