Protect against accidental deadlocks