During upgrade, in case the Database connection is lost or if the database goes down by accident, there may be a slight delay in displaying the connection lost status to the user.
Always ensure that the database and server are up and running. It is recommended not to restart the database while upgrade is in progress.