Added pragma to hide non-assigned variable warning/error in mono. Made task factory call shim thread rather than storing in unused variable