Properly shutdown supervisor to avoid shutdown_error