Syncronous connection closing is bugged