Fix close() issue on LocalSocket
Tagged version 0.5.20