playerfactory: added EOS handling.

added EOS handling.
added error notify API.