Added support Windows console in GUI App and displays msgbox when fatal error occurred.