Fix bug where timeouts didn't properly report exit code 3