added messagebox and userdefined shutdown program