When dealing with opening the log file, check if it is open and if it is not throw a runtime exception