(Issue 369) Wait for MQ to empty in searchRefreshed. Also delay after refresh command.