Memory leak seems to be gone on normal execution
Race with exceptions