misc: Fix close() call to pass in fd

fd is an int, we need to use os.close().

Signed-off-by: Sam Lang <sam.lang@inktank.com>