removed 'status = -1' in case of file transfer because it caused the context buffers to be freed before file sent, fix by setting a proper 'delete' flag instead of using the return status as a deletion flag