fixed `to_string` for process_info
print stack trace on error and warning messages