close DEBUG mode