Implement close/reopen for tasks

Allow the owner to close or reopen tasks.