How are deadlocks handled?