close is needed by ruby