[#1297] Make sure ResourceLeakDetector.open(...) is only used after constructing was successful