adds closing operation to Limbrary build (untested)