[fix] do a check to make sure the server exists before we try and emit