Update main.c

Corrected c_app_close error