Clean must clean the related configuration with the protocol. Including just the two first lines of the prepare() function should be enough. From prepare then you can call clean in the beginning.