Handled exception saving assembly cache (fixes #219)