This is useful for checking if window has been closed without going through the WindowProc.
read_reg
set_blocking