Seems like simply calling finish() would suffice?