Preflight checking to LithiumError Handling

Just the last checkin, before actual code for lithium error handling is
added and tested