cancel background tasks on timeout