cleanups
cpe has keepConnectionOpen variable