Added exception handling to injects.