Add a stop/1 version of the function, for cleanup.