Added the checks for backup closing connection due to error