Or just left click into monitor pane (upper left pane in monitor window), do ctrl+c and wait all the scripts to stop (pane dead message) and do ctrl+a+d to detach and do killall tmux in terminal, or tmux kill-session nzedb, if you have more than one tmux sessions running.