clean up when task finish