Unloads library at exit. Could be done generally in Dynlib. Closes #686