Now terminal will not be messed after crash of client or server.