commit last stuff before quit