Added base destruction- basic version

It works, but needs to be changed to a publicvariableeventhandler so
that it can be started and stopped on the event of the PV counter being
changed. Other tweaks needed as well.