patch to give user the option of detaching tmux windows upon closing