Put try/catch around Integer parse