Don't send an extra signal when waiting for a debug event, just do a normal wait. Return the debug event status directly as return value of the server call.