try catch blocks appear to be working in callbacks