Nicosia: parse wasp string
Nicosia: proper shutdown