Fix 2 unclosed sockets that can happen on errors in
supervisor/datatypes.py

Fixes 2 of the `ResourceWarning` warnings in GH-391.