Fixed wrong usage of onabort