This should ensure that if we decide to implement some threading in the cli, a faulty file won't break everything.
mimetype