Added quit callback