Catch exceptions

Resolves #15587