SPARK-2689 Fix potential leak of connection/PreparedStatement in case of error in JdbcRDD