text: Title: ProcessUtils.fatalError() to export critical information before crashing the process
  Body: **Is your feature request related to a problem? Please describe.**
  It would be good to export some critical information (stack traces, heap dump, etc...) before crashing process due to a fatal error.
  
  **Additional context**
  It's hard to reproduce fatal errors and most of the valuable information is gone with the terminated process.
  