fixes for far end connection closing