socket_cp_init now is called from main() and f_close has been added.