Fixing memory leak
Removing heapdump as dependency