Small cleanup in DLEP code to make sure session cleanup does not block