Added error handler for Instagram methods