Added default callback to avoid redirection on termination