afanasy mswin: exit status check