add util function for dumping all living threads and their stacktraces
add util function for dumping all living threads and their stacktraces

taken from https://stackoverflow.com/a/24334576

pajlada/pajbot,pajlada/tyggbot,pajlada/pajbot,pajlada/pajbot,pajlada/tyggbot,pajlada/tyggbot,pajlada/tyggbot,pajlada/pajbot