"gracefully" handles when file is already open

well i wouldn't call it graceful