added exception handling for laser scanner mem allocation