Don't leak a file handle if we are unable to create a message digest (which is admittedly unlikely).