Check connected before processing