Migrate try statements