Reconnection of vortex with the boundary and finite time quenching