cancel_task was overwriting the status of already-completed, failed, or cancelled tasks. Calling DELETE on a completed task would silently change its status to CANCELLED. Now returns False early for terminal states.