Add try catch for runtime exception to stop sending requests while user is not signed in.
Move catch exception to MainView, so that the actionListener only runs when networkConfiguration is not null