It sounds like the M05 is executing before the motors have stopped moving, but the motion in the trajectory planner has completed its task.
The fix might be to add a delay before the G05 command
N0600 X90.4897 Y35.4558
N0605 G04 P0.8
N0610 M05
N0620 G04 P0.8
Another possibility might be to turn on Exact Stop, G61