Nozzle staying on and crashing into print after complete

Hi, everyone I am using a anet a8 running on Marlin and it was printing well until I installed octoprint. When I print directly to octoprint server (not sdcard) I am having lots of problems with my z axis offset being ignored and then also when it completes the print it leaves the nozzle heat on and ether lowers or sags in to the part, which mess with my auto level sensor which completely throws off my bed level. Anyone know what I am doing wrong?

Hello @redeye_joe!

That is very difficult to say without the logs you have been asked for...