Fixing a bug when we unloading a plugin.

Added option to send value to an action.