Add model to track and send errors

if(callback) is okay. If callback is something other than function, that's some error on the code. 
Let it break the app in that case.