fixed issue that was not deleting tmp file when invalid owner exists
fixed issue that was not deleting tmp file when invalid owner exists

UniversityOfNicosia/blockchain-certificates,UniversityOfNicosia/blockchain-certificates