Implement a way to unexport a port, e.g. when the task exits.