change output of key exchange and catch error for empty messages

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>