Added error handling for Instagram controller.