The program can be stopped due to a mistake in one of the programs, also due to the wrong input of the user and the program can be stopped, even if the server does not respond properly, the program can be stopped, the execution of the program can be stopped…