Added return while invoking callback with error