Improve performance for writing simplemrs.
Close some files left open.
Warn when Xmrs.links() fails because of missing label.