Popen.stdout should also be closed
PAZ files should be closed after reading