Fixed case were nonblocking writer wouldn't print remaining data