Serialize date to long.
Checks whether we found a user entity before we queue a value.
Installs a default handler for exceptions that print the stacktrace to stdout.