You might consider removing this behavior outright.  It's difficult to deal with in debug builds.