Added retry functionality for capturing browser.