try/except block for file createion

Just check for file exists error , other cases (permission denied) are real failures.