release embedded read_msg on close