Track client closes
Fixed some errors in address parsing