Config reverts if apply failed (fixes #116)