lua-dest: Added deinit function for lua destination.

Added new deinit-func() parameter, in which we can specify a
function name which is called during destination driver deinitialization.