Close the backend automatically when it is done being used