move make_unique_with_deleter to util.h
add WasInit
shut down sdl only if it was initialized
make Init return bool
drop WasInit, looks weird
assert paranoia
const paranoia
comments paranoia
code rearrange
lets print some errors in case things go wrong
code style fix
don't forget to pump events