minor bug fixes
Now correctly return intended exit code upon forced exit after timeout - thank you @mbelang
Fix for undefined array - thank you @michaelBenin
Now correctly return intended exit code upon forced exit after timeout - thank you @mbelang
Fix for undefined array - thank you @michaelBenin