Oil closing up 3 percent to end the week, but the steep losses