close a brain app window