peer: Add core dumping and backtrace in segfaults