Show warning when socket close fails. Fixes #17