Added timeout message and model listener.

Added model listener on server side.
Added timeout message and client side handling.