Here's how it's done in LTSpice. A diode is added across the resistor, to discharge the capacitor, when the power is disconnected.

Thank you very much Sir for your reply. I have some doubts regarding the circuit and could you help me out??
1)This timer is used to disconnect another circuit board for the first 5 seconds. the power supply for the timer is taken parallel from the other circuit board and there is no separate switch for the timer. what i want is that after the 5 seconds the timer circuit should be turned off through out the use of the other circuit until the switch for the other circuit is again restarted. Does this circuit provides this function??
2) on reading the datasheet its found that the max working voltage for the 555 is 16v and however my supply voltage is around 16.8(4s Li ion cell). So a linear regulator 7812 would be needed at the input right??
3) on the right hand side W1 and load 10R represents the switching side of the my relay right ??