Changing deadlock exceptions into notices (with a warning in the log)