Fix #566138: add setting to close the window when both the new window and send to...