Updated with logger and exception handler. Added support for not getting blacklisted by geoplugin.