qsize method in multiprocessing.Queue fails in mac os. Catch the error and set the size to 0.