Fixed some logging issues, program is still unstable, even after successful handshake.