Added 401 errors instead of random aborts so that the application can handle them appropriately;