Fix NPE in verticle close function.