assert: add BUG() macros, that didn't respect NDEBUG macro
commandserver: use BUG() instead of ASSERT()

Otherwise in release target server won't start.
commandserver: ignore SIGPIPE (to avoid breaking server)