main: fixed bug (segfault on astra.exit)