RNA file is properly deleted if generation is successful

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>