It is not valid to use frames here because multiple compilations may run concurrently, and a frame with a given name must stop before starting again.