First thing I would check is if a generic handle_info(msg, socket) catch something in the msg.
handle_info(msg, socket)