Improve Exception handling and code style
[ci skip]
Fix Class Not Found error in Instagram API access [ci skip]