catch exceptions in call