added exception handling for missing numpy dependency.