deadlock ends