fixed restart client
fixed panic in notification plugin code