Fix param crash and connect/disconnect

Fixing some MockLink bugs