Add support for solaris and gracefull killing with thread dumps.