Moved shutdown script to lib folder