Shut down lua and libuv when the program is done.