Remove code from attempt to auto close