Close #292: save current task in cache