Added sanity checks and exception handling in injected code