finish service lifecycle