Add close method to queue impementations