convert response._payload to buffer
Cleanup stream and directory prepare