Make sure fs is sane on error path