libslc: Refactor _close to his own source file.