no longer crashes if client button is clicked without running server