i think, there's a rule in fso, matching headset plugging and subsequently causing actions, check rules.yaml. another way should be to enable logging in fso, set it to DEBUG and monitor the logfile while plugging/unplugging. that should provide some hints where to start looking from.