finish categories and search activities when match is created