LPS-44902 Utility method to relase resources
LPS-44902 Stop and release the resources after everything has been finished