             
             //Ensure we have a response
             guard let response = response else {
-                fatalError("[DVR] Failed to persist cassette, because the task returned a nil response.")
+                print("[DVR] Failed to persist cassette, because the task returned a nil response.")
+                abort()
             }
             
             // Create cassette


                // Add trailing new line
                guard var string = NSString(data: data, encoding: NSUTF8StringEncoding) else {
                    fatalError("[DVR] Failed to persist cassette.")
                }
                string = string.stringByAppendingString("\n")

                if let data = string.dataUsingEncoding(NSUTF8StringEncoding) {
                    data.writeToFile(outputPath, atomically: true)
                    fatalError("[DVR] Persisted cassette at \(outputPath). Please add this file to your test target")
                }

                fatalError("[DVR] Failed to persist cassette.")
            } catch {
                // Do nothing
            }

			fatalError("[DVR] Failed to persist cassette.")
        }
        task.resume()
    }

        }

		if cassette != nil {
			print("[DVR] Invalid request. The request was not found in the cassette.")
            abort()
		}

        // Cassette is missing. Record.
		if session.recordingEnabled == false {
			print("[DVR] Recording is disabled.")
            abort()
		}

        // Create directory
