Make writing non-blocking