added sigterm signal