releasing statefull instances properly on server