Remove custom exception type in favor of platform ones.