support for separating client exceptions from server ones. #314 #284
make sure end context marker is printed on nullserver exception