Added delay between card invoke and closing to prevent test failures