halt(X) exits the processor and returns to the system that invoked the processor, passing a message through the X variable. Due to Javascript characteristics, this predicate just stops the search in the database.