Add support for auto-retrying after exception in main RunLoop thread