Make sound system more reliable

Add shutdown hook so that AL is destroyed when the program terminates.