Add Ui::close
and Response::should_close
#5729
Merged
Ui::close
and Response::should_close
#5729