This function is invoked automatically
.onDetach(libpath)
libpath
a character string giving the complete path to the package.