Check `socket` is not `null`
Check `socket` is not `null`

This can happen when connection is lost during file upload,
then `_onClose` might be called before storeStream.on('finish')

oleksiyk/nodeftpd,sstur/nodeftpd