Looks like calling focusmax always produces the same error. I tried it with the simulator too same thing. But FM4 works fine by itself
19:20:26 Camera timed out cam.ImageReady
19:20:26 Camera timed-out after 30sec
19:20:27 ...CCD image: 1024 X 1024
19:20:27 Error: TakeSubFrame mod TakePointingExp