A simple Windows utility that waits for a named window to close.
Drop waitclose.exe anywhere in your system path, e.g. windows\system32.
windows\system32
usage:
waitclose window title
waits for the window 'window title' to open, and then close.
Download waitclose here