Add a timer to "register" to check if window is closed.

With the new behavior of vtkCocoaRenderWindow that was added in VTK 6.2,
closing the window no longer terminates the application.  There is no
event that is invoked when the window is closed, so the easiest thing to
do is have a timer that polls the window.