Remove dialog when closed