Try handling onabort