static int cleanup(int status)
{
  pk_endpoint_destroy(&rtcm3_pub);
  pk_endpoint_destroy(&rtcm3_sub);
  sbp_deinit();
  logging_deinit();
  return status;
}
void system_deinit()
{
  /*Deinitialize logging, Not handling error as closelog() does not return anything*/ 

  /*Functions used to deinitialize other modules needs to be called from here*/
  /*TBD respective component owners to include appropriate function call*/ 
  logging_deinit();
  bst_app_uninit();
}