withClosable now checks that the close() method has 0 parameters