fix BSP_terminate to use 'exit' to return result