Remove redundant methods

ServerSocket and Socket implement both Closeable, so we do not need seperated methods.