Memory statistics is dumped also for signals SEGV , ABRT and TERM

Added g_mem_profile() and malloc_stats_print() in crash_handler() and term_handler()