Fix result for gen_server printing
Add support for gen_event errors