Handled the exception of starting peer without server