Added a pure virtual method in Callback class to check if stopping an operation (like loading) is required.