added console shutdown method