Cleaned up exception handling in main(). It should not throw exceptions.
Ensure that the application cleans up after itself.
Updated JavaDoc