After Smart Add Task: on press of the Esc button should remove the dialog, not two