For technical halts, they may not even bring the train on the platform itself. It is all upto the Rly authorities. Even on the platform also, since no passengers are boarding, you are rest assured that train coaches doors won't be opened at all. Attendants are there in the compartment to manage all these situations.
However, it is advisable not to be so much scare of all this and also not to worry too much. Just think al izz well.