More explicit output of the error
A better way to write in the file for logs
Complete rewriting of the program in an object oriented way
Better handling of the closing of sessions, client...
Don't use keychain anymore and add better handling of closing