Set the connection to undefined on release.