_nix based. Fixed clearing exclusive access on port close.