Changed panics to log.fatal's because they are cleaner
Fixed issue when setup would lead to incorrectly formatted messages.