Update executor exit code with task exit code.

Thanks to @yshh for mentioning this bug in #12.