tried to add the closing of a task. Core dumped. Unable to track the error. commented the responsible code.