Revert "Prevent reading address information from potentially closed socket"

This reverts commit 48b94c3bebc86985097a59c12a4785df496a0026.