cleaning up web api (object, file, stream, etc.)