added exception handling to ghost messages