Fix crash when passphrase times out during search.
Formatting cleanups.