Switch event testing back to Unix domain socket, check event for nil before type asserting