Fixed invalid window handles ending up in infinite loop.
Added VDM monitoring app for debugging.