Improve FATAL_ERROR and FATAL_ASSERT behavior