This assumes the bridge isn't already burnt.
If you worked for an incompetent a-hole, chances are he'll have a negative opinion of you regardless of your exit behavior.
I've watched people bust their asses to leave their employer in the best position possible. The employer goes on to hold a negative opinion of them because they were too self-centered and stupid to understand the value that employee created. It was all wasted effort.