ts_close: run the fini op on plugins
ts_close: run the fini op on plugins

Fixes #3. Also dlcloses the handle if the plugin was shared, as is done
when a failed module load occurs.

Signed-off-by: Christopher Larson <151ee9d8882c48b2c49fd3831d428f4779cb63b5@gmail.com>

lin2724/tslib,kergoth/tslib,kobolabs/tslib,jaretcantu/tslib,etmatrix/tslib,pssc/tslib,folkien/tslib,kergoth/tslib,leighmurray/tslib,kergoth/tslib,jaretcantu/tslib,kobolabs/tslib,etmatrix/tslib,kergoth/tslib,vpeter4/tslib,folkien/tslib,kobolabs/tslib,pssc/tslib,etmatrix/tslib,vpeter4/tslib,lin2724/tslib,pssc/tslib,leighmurray/tslib