Catch exceptions

Resolves #15887