LPS-44902 Stop and release the resources after everything has been finished