Add prev action.

Tries to close the thread and sockets when deactivate the plugin.
But it is useless.. I'll have to redo all threads.. :S