Fixed bugs in dispose call, altered errand type to fix a bug, removed dynamic to make compatible with .NET 3.5