update comments
handle all possible prompts on close()