Made the connection manager react only to mac leases as it should. Also fixed a crash in the process