protect from aborted connection