use ensure clause to update status of XPool::Process.