Add check for no keys loaded when doing exchange as server to eliminate segfault