Check if connection is still alive