Kills the dock if successful

Added a line that kills the dock if the script was successful.
No need to logout if the dock is killed (and then restarts by itself).
The font inside apps doesn't change unless the app is restarted though.