Is the fclsRS232Tester Form the "startup form"? If so, you don't need the "Application.Exit()" call. The app will close by itself when the "startup form" is closed. Whatever form is passed to the Application.Run() line in program.cs is the "startup form".