Fixes #81: Fix segfault in embed_sim_init by returning early in error case
Merge pull request #82 from FinnG/issue#81-segfault-fix

Fixes #81: Fix segfault in embed_sim_init by returning early in error ca...