Print working directory on exceptions.
Validate input for non null.