Fixed to add failure handling when MapTask fails

Signed-off-by: Tsuyoshi Ozawa <ozawa.tsuyoshi@gmail.com>