Reenable stdout flushing, fix deferreds in Handlers