don't destroyWindow unless it had been created, and print success after storing position