quit() instead of close()