Safer exit to avoid crash on clients in some cases
Signed-off-by: Chris Rizzitello <rizzitello@kde.org>