Is there any possibility to execute a function after main()?