added shutdown hook
added --batch-mode to release-plugin