Add try-catch block and fix setting the account information on each domain

Closes #2