CLI and proper pool termination