All Hedvig changes added
done variable in Task.java marked volatile
running is set true only if it is false in Task.resume()