           let writeToFileURL = writeToFileURL {
 
             let fileManager: FileManager = FileManager.default
-            guard !fileManager.fileExists(atPath: archiveToFileURL.path) else { return false }
+            guard !fileManager.fileExists(atPath: archiveToFileURL.path) else { closure?(false); return false }
 
             closeFile()
             haveLoggedAppDetails = false

    ///
    /// - Parameters:
    ///     - archiveToFile:    FileURL or path (as String) to where the existing log file should be rotated to.
    ///
    /// - Returns:
    ///     - true:     Log file rotated successfully.
    ///     - false:    Error rotating the log file.
    ///
    @discardableResult open func rotateFile(to archiveToFile: Any) -> Bool {
        var archiveToFileURL: URL? = nil

        if archiveToFile is NSString {

            archiveToFileURL = archiveToFile
        }
        else {
            closure?(false)
            return false
        }

