Null socket when stopping the service.

Fixes #8.