fix memory leak on uncaught error

i separated ajax calls from domain storage since they are not the same thing. domain local storage will eventually be used to store other data that we need to send to the client