Make placeUnit return an error, rather than raise an exception.