use a try catch block to prevent an unexpected error that occurs in the server #8