Completing task in pre task script skips the post task script