Throw exception when trying to use export functionallity.

#248