Remove key file when migration fails. Upstream-commit: 40bd10dc958cdc9a7ef58f61504ec3d65e74d5d8 Component: engine