FIXED: the key exchange auto-update

Added a thread to update the key exchange manager.