Updated GDBFE to check if comm has been shut down before sending a message.