partial implementation of close_uis