Make sure timer/prepare handles are stopped when loop:stop is called