move pre_shutdown() call in the context of the child process instead of the main-process (thanks defransen)
move pre_shutdown() call in the context of the child process instead of the main-process (thanks defransen)

trbs/bucky,dimrozakis/bucky,ewdurbin/bucky,ewdurbin/bucky,trbs/bucky,JoseKilo/bucky,Hero1378/bucky,jsiembida/bucky3,dimrozakis/bucky,JoseKilo/bucky,Hero1378/bucky