make sure to close sockets that we open to detect cloud environment (#1134)
make sure to close sockets that we open to detect cloud environment (#1134)

fixes #1133
beniwohli/apm-agent-python,beniwohli/apm-agent-python,beniwohli/apm-agent-python,beniwohli/apm-agent-python