Don't segfault when there is no connection.