Removed pragma library to not proceed XHR if calling object destroyed