Close the find-in-files dialog before changing projects

It says what it does and, hopefully, it does what it says.