Avoid exceptions on OS X (since queue size is not implemented)