Fixxed a Bug and added a SIGTERM handler