Make sure file is closed and temp file is removed if the move command fails
Make sure file is closed and temp file is removed if the move command fails

monkeyherder/moirai,monkeyherder/moirai,monkeyherder/salus,monkeyherder/salus