add quit function with simple implement