Better error catching for Instagram API.