Some resources where not disposed 

dataStream and response were not disposed, this could crash when we upload many files
merged and fixed ticket metrics test
Merge branch 'pr/102'