Catch string-to-int conversion exceptions