[daemon] Verify socket status before handling message