added custom exception, not checked, to mark when an error occurs. FileWriter should now be finished