try to prevent terminating