Error handling bug in backupPath.
Fixed a resource exhaustion bug with the return of backupPath.
Don't call close on -1 fds.