Show a better error message in cases of possible deadlocks