Use correct format for int64_t
Add error handling for network code
Fix memory leak when passing empty config file
Fix memory leaks when exiting with errors