Added code to rupgrade that waits 5 seconds and tries again if there's a problem unmounting