Update permission documentation
Fix CLI pool closing