Added support for clean termination, updated README.