Add exception handling in server side, and enable client send