jsonp error handling with timeout, expiry and duration measurement