Lock / unlock interface on disconnection / connection