Remove useless debug
Properly shutdown libpkg