Key exchange works and writing messages to file, but not reading them