lost connection to one db

If I make a connection to a remote db and I use it in a solution with forms and relationships, when, for any reason, that db is not available the solution cannot work properly.
There is a way to use at least forms and methods of that solution where the lost db is not used?

I think that is impossible if not difficult. The solution checks for many dependencies (and it should) on startup of the solution.