core: reset cur_opt shortcut after use, it points to local variable

- safety to prevent invalid access on future extensions
geoip: free allocated pointers at startup in case of error

- cleaner shut down