add server finish code