Fix error handling during reading passhrase.