Use 'with' statements.
Bug #418475: Handle PermissionError caused by unreadable /etc/portage/modules.