wrap init logic in catch