Fix timer

This hopefully fixes two recent issues:
- ensime/ensime-server/#468  (first commit)
- ensime/ensime-server/#466, remove warning during initialization  (second commit)