Destroy context and socket instead of letting socket linger.