log at error! if close of socket fails