make sure we clean up on a failed seek