make socket_instantiate_service use cleanup gcc attribute