Add an external method to disable leak detective temporarly