[win32] Empty search box after switching in persistent mode
[win32] More consistent error printing