FIX: windows cmd wait handler