Switch to forward-slashes
Fail function is called when an operation fails