Added some simple error handling in general transform