avoiding client server close - not a final solution