Add domain disposal on socket disconnect