! is the key. (Other move orders are possible after and )
connect leads to disaster.
makes ko, because White connect is met by Black a.