i am not using it on production, just exploring right now. So above is what i did for time being. I think it might be a bug introduced in some recent version as i vaguely remember the execution waiting after the server was launched.
just add this after that so that the code waits? while True: pass