std::function does not support equality operators, so we have to remove these or implement a better disconnection method. The former is easier for the time being.