quiet disconnect exception handling
resize and ctrl+c signal handling