Call flush after writing the identity message