An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Maybe create a Thread or Task and start it explicitly before return command.
What kind of background process are you creating?