Closing content stream by error. Fixed