Add a warn message if the heap dump can't be created