Catch exception instead of throwing it