final error handling for win8