Doesn't exit when attempting to save to a directory