corrected fs.extra
Disconnect client after build failed