Catch part of possible exceptions.