Close engine connection on quit.