We need to wrap the new debounce function inside a try block to avoid throwing a "module not found" exception.