Move up check for error status of prepareStatement to before access of info.