Changed type from string to int for BuildNumber
Added AggregateException handling (will now output all inner exceptions for aggregated exceptions).