[bugfix] xfclose returns correctly