Closing the log file after usage