fixed issue with handled exceptions killing connection