Check whether  is set before killing vnc