Set auto-commands for closing preview mode upon completion.

Attempt to utilize http://stackoverflow.com/questions/3105307/ to
fix #7