fix return code on windows