fixed memory leak in PGPHandler