Make FileWriter writes from current position and change failure condition