celery command cannot catch TypeError
Fix for fileno when long
Removes hack fix solved by asynwrite branch