if setting a target fails and we have a target, unset that target.
Workaround for #35