solved ptoblem with shutdown