Example of deadlock handling