notification of terminated server works
refactoring of error messages